'use strict';

angular.module('com.dcos.app').factory('LoginService', function LoginService($http, $cookies) {
	return{
		login: function (username,password) {
	      return $http({
	        method: 'POST',
	        url:'http://10.139.7.116:10010/v1/user/login',
	        data:JSON.stringify({username:username,password:password}),
	        headers: {'Content-type': 'application/json,text/plain','Accept': 'application/json'}
	      });
			//return {id:1};
	    }
	}
});